using System;
using UnityEngine;

public class InAppBilling : MonoBehaviour
{
	private void Start()
	{
		int num = 1;
		IntPtr clazz = AndroidJNI.FindClass("android/os/Build$VERSION");
		IntPtr staticFieldID = AndroidJNI.GetStaticFieldID(clazz, "SDK_INT", "I");
		long num2 = AndroidJNI.GetStaticIntField(clazz, staticFieldID);
		num = (int)num2;
		if (num >= 11)
		{
			AdvertisementHandler.BindBilling();
		}
	}

	private void Test()
	{
		AdvertisementHandler.TestBilling();
	}
}
